<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Rượu Cao Cấp - Chi Tiết</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link rel="stylesheet" type="text/css" href="style.css" />
<!--[if IE 6]>
<link rel="stylesheet" type="text/css" href="iecss.css" />
<![endif]-->
<script type="text/javascript" src="js/windowopen.js"></script>
<script type="text/javascript" src="js/boxOver.js"></script>
<script type="text/javascript" src="js/jquery-1.10.2.js"></script>

<meta name="viewport" content="width=device-width, initial-scale=1.0"> 
<meta name="description" content="Slicebox - 3D Image Slider with Fallback" />
<meta name="keywords" content="ruou, ngoai nhap, xuat khau, ruou vang, ruou tay, rum, jquery, css3, 3d, webkit, fallback, slider, css3, 3d transforms, slices, rotate, box, automatic" />
<meta name="author" content="Hieunm" />

<link rel="shortcut icon" href="../favicon.ico"> 		
<link rel="stylesheet" type="text/css" href="css/slicebox.css" />
<link rel="stylesheet" type="text/css" href="css/custom.css" />
<script type="text/javascript" src="js/modernizr.custom.46884.js"></script>

<script>
var waitZoomFlg = true;
function zoomImg(path, status) {
	//alert('aaa');
	// FOCUS Zoom Image
	if(status == 'focus') {
		return;
	}

	// BLUR Zoom Image
	if(status == 'blur' && waitZoomFlg) {
		$("#img_zoomer").css('display','none');
		return;
	}
	
	// OFF Zoom Image
	if(status == 'off' && waitZoomFlg) {
		$("#img_zoomer").css('display','none');
		return;
	}

	// ON Zoom Image
	if(waitZoomFlg && status == 'on') {
		waitZoomFlg = false;	
		var widthWinSize = $(window).width();
		var heightWinSize = $(window).height();
		var div = $("#img_zoomer");
		div.css('display','inline');
		div.css('left', 0);
		div.css('top', -300);
		div.animate({left: (widthWinSize-div.width())/2, top:'50px'});
	    div.animate({height: div.height(), opacity:'0.4'}, 'fast');
	    div.animate({width: div.width(), opacity:'1'}, 'fast');  
	    $("#id_product_img_big").css('width', div.width()-10);
	    $("#img_For_Zoom").prop('src', path);

	    // Wait 1 second for animate effect finish
	    setTimeout(function(){
	    waitZoomFlg = true;
		}, 1000);
	} 	
}

function beforeSubmit(searchValueInput, action) {
	var urlSubmit = action + 'all';
	if ($.trim(searchValueInput) != '') {
		urlSubmit = action + searchValueInput;
	}
	
	$('#submitSearchFormId').attr('action', $.trim(urlSubmit));
}

$(document).ready(function(){/*
  $("#img_zoomer").hover(function(){
    $("#img_zoomer").css("background-color","yellow");
    },function(){
    $("#img_zoomer").css("background-color","pink");
  });*/
});
<!-- <p>Hover the mouse pointer over this paragraph.</p>-->
</script>

<script type="text/javascript" src="js/jquery.slicebox.js"></script>
<script type="text/javascript">
	$(function() {
		
		var Page = (function() {

			var $navArrows = $( '#nav-arrows' ).hide(),
				$shadow = $( '#shadow' ).hide(),
				slicebox = $( '#sb-slider' ).slicebox( {
					onReady : function() {

						$navArrows.show();
						$shadow.show();

					},
					orientation : 'r',
					cuboidsRandom : true,
					disperseFactor : 30,
					autoplay : true,
					interval: 5000
				} ),
				
				init = function() {

					initEvents();
					
				},
				initEvents = function() {

					// add navigation events
					$navArrows.children( ':first' ).on( 'click', function() {

						slicebox.next();
						slicebox.play();
						return false;

					} );

					$navArrows.children( ':last' ).on( 'click', function() {
						
						slicebox.previous();
						slicebox.play();
						return false;

					} );

				};

				return { init : init };

		})();

		Page.init();

	});
</script>


<?php
require_once 'Lib/main.php';
require_once 'Lib/common/commonConst.php';
require_once 'Lib/Config/config.php';

$urlBase         = URL_BASE;
$imgProdPath     = $urlBase . '/' . PICTURE_PROD_FOLDER . '/';
$vndCurrencySym  = common_commonConst::VND_CURRENCY_POSTFIX;
$heightImg       = common_commonConst::IMG_HEIGHT_DEFAULT;
$widthImg        = common_commonConst::IMG_WIDTH_DEFAULT;
$heightImgDetail = $heightImg + 50;

// Get Request Params
$categoryParam         =  isset($_REQUEST['cat']) ? $_REQUEST['cat'] : '' ;
$productClassParam     =  isset($_REQUEST['class']) ? $_REQUEST['class'] : '' ;
$pageRequestParam      =  isset($_REQUEST['p']) ? $_REQUEST['p'] : '' ;
$numOfPageRequestParam =  isset($_REQUEST['n']) ? $_REQUEST['n'] : '' ;
$idProductParam        =  isset($_REQUEST['idProd']) ? $_REQUEST['idProd'] : '' ;

// Define header navigator
$homePage              =common_commonConst::HOME_PAGE;
$productPage           =common_commonConst::PRODUCT_PAGE;
$newsPage              =common_commonConst::NEWS_PAGE;
$contactPage           =common_commonConst::CONTACT_PAGE;

$categoryDao           = new Dao_CategoryDAO();
$category              = $categoryDao->getCategory();

$productClassDao       = new Dao_ProductClassDAO();

$idCat      = trim($categoryParam);
$idClass    = trim($productClassParam);
$page       = $pageRequestParam !== '' ? $pageRequestParam : 0;
$num        = $numOfPageRequestParam !== '' ? $numOfPageRequestParam : 20;
$productDao = new Dao_ProductDAO();
$product    = $productDao->getListProductsByClassAndCat($idCat, $idClass, $page, $num);
//var_dump($product);

//var_dump(getImgSize('http://localhost/wine/wine_10-11-2013/pic/Rum/rum_0004.jpg', 170, 'w'));

$productDetail = $productDao->getProductById($idProductParam); //$idProductParam
//var_dump($imgProdPath . $productDetail[0]->getNameClassFolder() . '' . $productDetail[0]->getImageUrl());

// Get Image Url for product detail
$imgUrl = $productDetail[0]->getImageUrl();
(!isset($imgUrl) || $imgUrl === '') 
	? $imgFullPath = 'images/' . common_commonConst::NO_IMAGE_VAR 
	: $imgFullPath = PICTURE_PROD_FOLDER . '/' . $productDetail[0]->getNameClassFolder() . '/' . $productDetail[0]->getImageUrl();		

//Get Special Product Info
$cond = array();
$cond['special_range'] = common_commonConst::SPECIAL_RANGE;
$specialProduct = $productDao->getListProductsByCondition($cond);	
	
	
	
// Function Resize Image
function getImgSize($path , $param, $att = null) {
	try {
		$source_image_size = getimagesize($path);
		if ($att !== null && $att === 'w' && $param !== null && $param > 0) {
			return $widthReturn = round($param * ($source_image_size[0] / $source_image_size[1]));			
		} else if ($att !== null && $att === 'h' && $param !== null && $param > 0) {
			return $heightReturn = round($param * ($source_image_size[1] / $source_image_size[0]));			
		}
		
		return $source_image_size;
	} catch (Exception $e) {
		return 0;
	}
}

?>

</head>
<body>
<div id="main_container">
  <!-- <div class="top_bar" style="position: fixed;top: 0%; z-index: 1000;"> -->
  <div class="top_bar">
    <form id="submitSearchFormId" method="post" action="" 
		  	    onsubmit="javascript:beforeSubmit(this.search.value, '<?php echo $urlBase . '/' . 'index.php?search='; ?>');">
	    <div class="top_search">
	      <!--  
	      <div class="search_text"><a href="#">Tìm Kiếm Sản Phẩm</a></div>
	      <input type="text" class="search_input" name="search" 
	      		 title="header=[<php? echo common_commonConst::SEARCH_GUIDE_STRING;?>] body=[&nbsp;] fade=[on]"/>
	      <input type="image" src="images/search.gif" class="search_bt"/>
	      -->
	    </div>    
	    
	    <div class="float_top_search" style="position: fixed;top: 0%; z-index: 1000;">
	      <div class="search_text"><a href="#">Tìm Kiếm Sản Phẩm</a></div>
	      <input type="text" class="search_input" name="search" 
	      		 title="header=[<?php echo common_commonConst::SEARCH_GUIDE_STRING;?>] body=[&nbsp;] fade=[on]"/>
	      <input type="image" src="images/search.gif" class="search_bt"/>
	    </div> 
	    
	  </form>
    <div class="languages">
      <div style="line-height:22px" class="lang_text">Ngôn Ngữ Hiển Thị:</div>
      <a href="#" class="lang">
      	<img src="images/VnFlgIcon.png" height="23px" alt="" border="0" /></a> 
      <!-- <a href="#" class="lang">
      	<img src="images/en.gif" height="20px" alt="" border="0" /></a>  -->
      </div>
  </div>
  
  
  
  <div id="header" style="height: 330px">
    <div id="logo" align="center" style="width: 290px"> 
    	<a href="#">
    	<img src="images/wine17.png" alt="" border="0" width="250" height="190" /> <br/>
    	<img src="images/BannerText3.png" alt="" width="350px" height="105px"/> </a>
    </div>
    <div class="oferte_content">
      <div class="top_divider"><img src="images/header_divider.png" alt="" width="1" height="330" /></div>
      <div class="oferta">
        <div class="oferta_content"> 
        	<!--  <img src="images/laptop.png" width="94" height="92" alt="" border="0" class="oferta_img" /> -->
          	
          	
          	<div class="oferta_details" style="width: 470px">
          		<div class="wrapper">
					<?php require_once 'sliceBanner.php';?>
				</div>
			</div><!-- /wrapper -->
          
          
          <!-- 
          <div class="oferta_details">
            <div class="oferta_title"></div>
            <div class="oferta_text"></div>
                
            <a href="details.html" class="details">details</a> </div>
            -->
        </div>
        <!--  
        <div class="oferta_pagination"> <span class="current">1</span> <a href="http://all-free-download.com/free-website-templates/">2</a> <a href="http://all-free-download.com/free-website-templates/">3</a> <a href="http://all-free-download.com/free-website-templates/">4</a> <a href="http://all-free-download.com/free-website-templates/">5</a> </div>
      	-->
      </div>
      <div class="top_divider"><img src="images/header_divider.png" alt="" width="1" height="330" /></div>
    </div>
    <!-- end of oferte_content-->
  </div>
  





  
  <div id="main_content">
    <div id="menu_tab">
      <div class="left_menu_corner"></div>
      <ul class="menu">
        <li><a class="nav1" style="font-size: small;" 
        	   href="<?php echo $urlBase . '/' . 'index.php' ;?>" ><?php echo $homePage ;?></a></li>
        <li class="divider" style="width: 150px"></li>
        <li><a class="nav2" style="font-size: small;" 
        	   href="<?php echo $urlBase . '/' . 'index.php?p=product' ;?>" ><?php echo $productPage ;?></a></li>
        <li class="divider" style="width: 150px"></li>
        <li><a class="nav3" style="font-size: small;"
               href="<?php echo $urlBase . '/' . 'index.php?p=news' ;?>" ><?php echo $newsPage ;?></a></li>
        <li class="divider" style="width: 150px"></li>
        <li><a class="nav4" style="font-size: small;" 
               href="<?php echo $urlBase . '/' . 'contact.php' ;?>" ><?php echo $contactPage ;?></a></li>
        
        <!-- 
        <li><a href="http://all-free-download.com/free-website-templates/" class="nav4">Sign Up</a></li>
        <li class="divider"></li>
        <li><a href="http://all-free-download.com/free-website-templates/" class="nav5">Shipping</a></li>
        <li class="divider"></li>
        <li><a href="contact.html" class="nav6">Contact Us</a></li>
        <li class="divider"></li>
        <li class="currencies">Currencies
          <select>
            <option>US Dollar</option>
            <option>Euro</option>
          </select>
        </li>
        -->
        
      </ul>
      <div class="right_menu_corner"></div>
    </div>
    <!-- end of menu tab -->
    
    
    
    <div class="crumb_navigation"> Navigation: <a href="<?php echo $urlBase . '/' . 'index.php'; ?>">Home</a> &lt; <span class="current">Category name</span> </div>
    
    
    <!-- start of left content -->
    <div class="left_content">
    <?php 
		foreach($category as $key => $value) {    			 
	?>
	  <a style="text-decoration: none;" 
	  	 href="<?php echo $urlBase . '/' . 'index.php?cat=' . $value->getId(); ?>">
		  <div class="title_box">
			  <?php echo $value->getName();?></div>
	  </a>
      <ul class="left_menu">
        <?php 
			$productClass = $productClassDao->getProductClassByCategoryId($value->getId());
			
			if($productClass !== false && $productClass !== null) {
        		foreach($productClass as $subKey => $subValue) { 
        			if(($subKey%2) === 0) {			 
		?>
        	<li class="odd">
        		<a href="<?php echo $urlBase . '/' . 'index.php?class=' . $subValue->getId(); ?>">
        			<?php echo $subValue->getNameClass();?></a></li>
        <?php 
        			} else {   			 
	    ?>
	    	<li class="even">
	    		<a href="<?php echo $urlBase . '/' . 'index.php?class=' . $subValue->getId(); ?>">
	    			<?php echo $subValue->getNameClass();?></a></li>      
		<?php 
        			}
        		}
			}    			 
	    ?>
	    
        <!--
        <li class="even"><a href="http://all-free-download.com/free-website-templates/">Motherboards</a></li>
        <li class="odd"><a href="http://all-free-download.com/free-website-templates/">Desktops</a></li>
        <li class="even"><a href="http://all-free-download.com/free-website-templates/">Laptops &amp; Notebooks</a></li>
        <li class="odd"><a href="http://all-free-download.com/free-website-templates/">Processors</a></li>
        <li class="even"><a href="http://all-free-download.com/free-website-templates/">Motherboards</a></li>
        <li class="odd"><a href="http://all-free-download.com/free-website-templates/">Processors</a></li>
        <li class="even"><a href="http://all-free-download.com/free-website-templates/">Motherboards</a></li>
        <li class="odd"><a href="http://all-free-download.com/free-website-templates/">Desktops</a></li>
        <li class="even"><a href="http://all-free-download.com/free-website-templates/">Laptops &amp; Notebooks</a></li>
        <li class="odd"><a href="http://all-free-download.com/free-website-templates/">Processors</a></li>
        <li class="even"><a href="http://all-free-download.com/free-website-templates/">Motherboards</a></li>
        -->
      </ul>
	<?php 
		}    			 
    ?>
    
      <div class="title_box">Sản Phẩm Đặc Biệt</div>
      <div class="border_box" style="height: 350px">	
      	<br/> 
	    <marquee direction="up" height="320" scrollamount="4" onmouseover="stop()" onmouseout="start()"> 
	    	<?php 
				foreach($specialProduct as $spkey => $spvalue) {  
					$imgUrl = $spvalue->getImageUrl();
					(!isset($imgUrl) || $imgUrl === '') 
						? $specialImgFullPath = 'images/' . common_commonConst::NO_IMAGE_VAR 
						: $specialImgFullPath = $imgProdPath . $spvalue->getNameClassFolder() . '/' . $spvalue->getImageUrl();			 
			?>
			    <a href="<?php echo $urlBase . '/' . 'details.php?idProd=' . $spvalue->getId(); ?>" target="_blank">    
			        <div class="product_img">
			        	<img src="<?php echo $specialImgFullPath;?>" alt="" border="0"
			        		style="width:100px;" /></div>
			        <div class="product_title"><?php echo $spvalue->getName();?></div>
			        <div class="prod_price"><span class="reduce"><?php echo number_format($spvalue->getOldPrice(), 0, '', ',') . ' '. $vndCurrencySym;?></span> 
			        <span class="price"><?php echo number_format($spvalue->getPrice(), 0, '', ',') . ' '. $vndCurrencySym;?></span></div>
			    </a>
			<?php 
				}   			 
			?>
	    </marquee>
	    <!-- 
        <div class="product_title"><a href="details.html">Motorola 156 MX-VL</a></div>
        <div class="product_img"><a href="details.html"><img src="images/laptop.png" alt="" border="0" /></a></div>
        <div class="prod_price"><span class="reduce">350$</span> <span class="price">270$</span></div>
        -->
      </div>
      
      <div class="title_box">Báo Giá Sản Phẩm Mới</div>
      <div class="border_box">
        <input type="text" name="newsletter" class="newsletter_input" value="your email"/>
        <a href="#" class="join">join</a> </div>
      <!-- 
      <div class="banner_adds"> <a href="http://all-free-download.com/free-website-templates/"><img src="images/bann2.jpg" alt="" border="0" /></a> </div>
      -->
    </div>
    <!-- end of left content -->
    
    
    <!-- Div for zoom image -->
	<div id="img_zoomer" class="prod_box_big" style="display: none; position: fixed;"
		onmouseover="javascript:zoomImg('', 'focus');"
		onmouseout="javascript:zoomImg('', 'blur');" >
		<div class="top_prod_box_big"></div>
			<div class="center_prod_box_big">
				<div id="id_product_img_big" class="product_img_big" ><a href="#">
		          	<img align="middle" id="img_For_Zoom" src="" alt="" border="0" height="300px" /></a>
	          	</div>
        	</div>
		<div class="bottom_prod_box_big"></div>
	</div> 
    
    
    
    
    
    
    
    <div class="center_content">
      <div class="center_title_bar"><?php echo $productDetail[0]->getNameClass()?></div>
      <div class="prod_box_big">
        <div class="top_prod_box_big"></div>
        <div class="center_prod_box_big">
        
          <div class="product_img_big" style="width: 45%"> 
          	<a href="javascript:popImage('<?php echo $imgFullPath;?>','<?php echo $productDetail[0]->getName(); ?>')" 
          	   title="header=[Zoom] body=[&nbsp;] fade=[on]">
          	<img src="<?php echo $imgFullPath;?>" 
          		alt="" border="0" height="<?php echo $heightImgDetail . 'px'; ?>" 
          		 width="<?php $getWidthImg = getImgSize($imgFullPath , $heightImgDetail, 'w');
          		 			if ($heightImgDetail > $getWidthImg) { $delta = 10; } else { $delta = -20; };
          		 			echo $getWidthImg + $delta + 'px'; ?>"/></a>
          	<!-- 
            <div class="thumbs"> <a href="#" 
            	 title="header=[Thumb1] body=[&nbsp;] fade=[on]">
           	<img src="images/thumb1.gif" alt="" border="0" /></a> 
           	<a href="http://all-free-download.com/free-website-templates/" 
           		title="header=[Thumb2] body=[&nbsp;] fade=[on]">
           		<img src="images/thumb1.gif" alt="" border="0" /></a> 
           	<a href="http://all-free-download.com/free-website-templates/" 
           		title="header=[Thumb3] body=[&nbsp;] fade=[on]">
           		<img src="images/thumb1.gif" alt="" border="0" /></a> </div>
           	 -->	
          </div>
          
          <div class="details_big_box" style="width: 50%">
            <div class="product_title_big"><?php echo $productDetail[0]->getName()?></div>
            <div class="specifications"> 
              Xuất xứ &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; : &nbsp;&nbsp;
              <span class="blue"><?php echo $productDetail[0]->getOrigin()?></span><br />
              Năm SX &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; : &nbsp;&nbsp;
              <span class="blue"><?php echo $productDetail[0]->getYearOfManufacture()?></span><br />
              Dung tích (ml) &nbsp; : &nbsp;&nbsp;
              <span class="blue"><?php echo $productDetail[0]->getCapacity()?></span><br />
              Nồng độ (%) &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; : &nbsp;&nbsp;
              <span class="blue"><?php echo $productDetail[0]->getLevel()?></span><br />
              Giá Rượu &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; : &nbsp;&nbsp;
              <span class="blue">Tham Khảo</span><br />
            </div>
            
            <div class="prod_price_big">
            	<?php if($productDetail[0]->getPrice() !== '' && $productDetail[0]->getPrice() !== '0') { ?>
		          	<span class="reduce">
		          		<?php echo number_format($productDetail[0]->getOldPrice(), 0, '', ',') . ' '. $vndCurrencySym; ?></span>
		          	<span class="price">&nbsp;&nbsp;&nbsp;
		          		<?php echo number_format($productDetail[0]->getPrice(), 0, '', ',') . ' '. $vndCurrencySym; ?></span></div>
	        	<?php } else { ?>      		
	        		<span class="price" style="font-size: 13px;font-weight: bold;">
	          			<?php echo common_commonConst::CALL_ME_SRING;?></span>
	          		<span class="price">&nbsp;</span>
	          			</div>
	          	<?php } ?>
	         
	        <br/><br/>
            <a href="<?php echo $urlBase . '/' . 'contact.php'; ?>" class="addtocart">Mua sản phẩm</a>
            <a href="<?php echo $urlBase . '/' . 'index.php'; ?>" class="compare">Về Trang Chủ</a> 
            </div>
        </div>
        <div class="bottom_prod_box_big"></div>
      </div>
      
      <div class="center_title_bar">Mô Tả Chi Tiết Sản Phẩm</div>

      <div class="prod_box_big">
        <div class="top_prod_box_big"></div>
        <div class="center_prod_box_big">
        	<div class="details_big_box" style="width: 90%">
        	<?php echo $productDetail[0]->getDetail()?>
        	</div>
        </div>
        <div class="bottom_prod_box_big"></div>
      </div>
      
      

      
      <div class="center_title_bar">Sản Phẩm Tương tự</div>
      <?php 
		foreach($product as $key => $value) { 
			if($value->getIdProductClass() === $productDetail[0]->getIdProductClass()) {
				if ($key === common_commonConst::SIMILAR_PRODUCT_COUNT) { break;};
				$imgUrl = $value->getImageUrl();
				(!isset($imgUrl) || $imgUrl === '') 
					? $similarImgFullPath = 'images/' . common_commonConst::NO_IMAGE_VAR 
					: $similarImgFullPath = $imgProdPath . $value->getNameClassFolder() . '/' . $value->getImageUrl();	
      ?>
      <div class="prod_box">
        <div class="top_prod_box"></div>
        <div class="center_prod_box">
        	<span class="price" style="font-size: 11px;font-weight: bold;">
          	<?php echo $value->getNameClass();?></span>
          <div class="product_title"><a href="<?php echo 'details.php?idProd=' . $value->getId(); ?>" style="font-size: 14px;font-weight: bold;"><?php echo $value->getName();?></a></div>
          <div class="product_img"><a href="<?php echo 'details.php?idProd=' . $value->getId(); ?>">
          	<img src="<?php echo $similarImgFullPath;?>" 
          		 onmouseover="javascript:zoomImg('<?php echo $similarImgFullPath;?>', '');"
          		 onmouseout="javascript:zoomImg('<?php echo $similarImgFullPath;?>', '');"
          		 alt="" border="0" height="<?php echo $heightImg . 'px'; ?>" 
          		 width="<?php $getWidthImg = getImgSize($similarImgFullPath , $heightImg, 'w');
          		 			if ($heightImg > $getWidthImg) { $delta = 10; } else { $delta = -20; };
          		 			echo $getWidthImg + $delta + 'px'; ?>"/></a></div>
          <div class="prod_price">
          	<?php if($value->getPrice() !== '' && $value->getPrice() !== '0') { ?>
	          	<span class="reduce" style="font-size: 15px;">
	          		<?php echo number_format($value->getOldPrice(), 0, '', ',') . ' '. $vndCurrencySym; ?></span> <br/>
	          	<span class="price" style="font-size: 15px;">
	          		<?php echo number_format($value->getPrice(), 0, '', ',') . ' '. $vndCurrencySym; ?></span></div>
        	<?php } else { ?>      		
        		<span class="price" style="font-size: 13px;font-weight: bold;">
          			<?php echo common_commonConst::CALL_ME_SRING;?></span><br/>
          		<span class="price" style="font-size: 15px;font-weight: bold;">&nbsp;</span>
          			</div>
          	<?php } ?>
        </div>
        <div class="bottom_prod_box"></div>
        <div class="prod_details_tab"> 
        	<a title="header=[&nbsp;] body=[&nbsp;] fade=[on]">
        		<img src="images/cart.gif" alt="" border="0" class="left_bt" /></a> 
        	<a title="header=[&nbsp;] body=[&nbsp;] fade=[on]">
        		<img src="images/favs.gif" alt="" border="0" class="left_bt" /></a>  
        	<a href="javascript:void(0);" title="header=[Phóng To Hình Ảnh] body=[&nbsp;] fade=[on]">
        		<img src="images/zoom_icon2.png" alt="" border="0" class="left_bt" width="21" 
        			onclick="javascript:zoomImg('<?php echo $similarImgFullPath;?>', 'on');"/></a> 
        	<a href="<?php echo 'details.php?idProd=' . $value->getId(); ?>" 
        	   title="header=[Chi Tiết Sản Phẩm] body=[&nbsp;] fade=[on]"
        	   class="prod_details">details</a> </div>
      </div>
		<?php } }; ?>
      
      
      
      
      
      <!-- 
      <div class="prod_box">
        <div class="top_prod_box"></div>
        <div class="center_prod_box">
          <div class="product_title"><a href="details.html">Motorola 156 MX-VL</a></div>
          <div class="product_img"><a href="details.html"><img src="images/laptop.gif" alt="" border="0" /></a></div>
          <div class="prod_price"><span class="reduce">350$</span> <span class="price">270$</span></div>
        </div>
        <div class="bottom_prod_box"></div>
        <div class="prod_details_tab"> <a href="http://all-free-download.com/free-website-templates/" title="header=[Add to cart] body=[&nbsp;] fade=[on]"><img src="images/cart.gif" alt="" border="0" class="left_bt" /></a> <a href="http://all-free-download.com/free-website-templates/" title="header=[Specials] body=[&nbsp;] fade=[on]"><img src="images/favs.gif" alt="" border="0" class="left_bt" /></a> <a href="http://all-free-download.com/free-website-templates/" title="header=[Gifts] body=[&nbsp;] fade=[on]"><img src="images/favorites.gif" alt="" border="0" class="left_bt" /></a> <a href="details.html" class="prod_details">details</a> </div>
      </div>
      <div class="prod_box">
        <div class="top_prod_box"></div>
        <div class="center_prod_box">
          <div class="product_title"><a href="details.html">Iphone Apple</a></div>
          <div class="product_img"><a href="details.html"><img src="images/p4.gif" alt="" border="0" /></a></div>
          <div class="prod_price"><span class="price">270$</span></div>
        </div>
        <div class="bottom_prod_box"></div>
        <div class="prod_details_tab"> <a href="http://all-free-download.com/free-website-templates/" title="header=[Add to cart] body=[&nbsp;] fade=[on]"><img src="images/cart.gif" alt="" border="0" class="left_bt" /></a> <a href="http://all-free-download.com/free-website-templates/" title="header=[Specials] body=[&nbsp;] fade=[on]"><img src="images/favs.gif" alt="" border="0" class="left_bt" /></a> <a href="http://all-free-download.com/free-website-templates/" title="header=[Gifts] body=[&nbsp;] fade=[on]"><img src="images/favorites.gif" alt="" border="0" class="left_bt" /></a> <a href="details.html" class="prod_details">details</a> </div>
      </div>
      <div class="prod_box">
        <div class="top_prod_box"></div>
        <div class="center_prod_box">
          <div class="product_title"><a href="details.html">Samsung Webcam</a></div>
          <div class="product_img"><a href="details.html"><img src="images/p5.gif" alt="" border="0" /></a></div>
          <div class="prod_price"><span class="reduce">350$</span> <span class="price">270$</span></div>
        </div>
        <div class="bottom_prod_box"></div>
        <div class="prod_details_tab"> <a href="http://all-free-download.com/free-website-templates/" title="header=[Add to cart] body=[&nbsp;] fade=[on]"><img src="images/cart.gif" alt="" border="0" class="left_bt" /></a> <a href="http://all-free-download.com/free-website-templates/" title="header=[Specials] body=[&nbsp;] fade=[on]"><img src="images/favs.gif" alt="" border="0" class="left_bt" /></a> <a href="http://all-free-download.com/free-website-templates/" title="header=[Gifts] body=[&nbsp;] fade=[on]"><img src="images/favorites.gif" alt="" border="0" class="left_bt" /></a> <a href="details.html" class="prod_details">details</a> </div>
      </div>
       -->
       
    </div>
    <!-- end of center content -->
 
    
  
    <!-- start of right content -->
    <div class="right_content">
    
      <div class="shopping_cart">
        <div class="cart_title">Giỏ Hàng</div>
        <div class="cart_details"> 0 sản phẩm <br />
          <span class="border_cart"></span> Tổng cộng : <span class="price">0 vnđ</span> </div>
        <div class="cart_icon"><a href="#" title="header=[Checkout] body=[&nbsp;] fade=[on]"><img src="images/shoppingcart.png" alt="" width="48" height="48" border="0" /></a></div>
      </div>
      
      <div class="title_box">Thông Tin Liên Hệ</div>
      <div class="border_box">
        <!-- 
        <div class="product_title"><a href="details.html">Motorola 156 MX-VL</a></div>
        <div class="product_img"><a href="details.html"><img src="images/p2.gif" alt="" border="0" /></a></div>
        <div class="prod_price"><span class="reduce">350$</span> <span class="price">270$</span></div>
        -->
        <div style="word-wrap:break-word;">      	
        	<table cellspacing="7">
        		<tr>
        			<td width="15%" colspan="3">
        				<div style="color:red; font-size: 13pt;
        					font-family: sans-serif; font-weight: bold; ">
							<?php echo common_commonConst::TITLE_LEFT_CONTACT; ?></div>
        			</td> 			
        		</tr>
        		<tr>
        			<td width="15%">
        				<img src="images/home_icon1.jpg" width="25px" alt="" border="0" />
        			</td>
        			<td width="1%" valign="top">:</td>
        			<td align="left">
	        			<div style="color:black; font-size: 9pt;
			        		font-family: sans-serif; display: inline-block;">		        		
			        		<?php echo common_commonConst::MY_ADDR; ?></div> 
        			</td>
        		</tr>
        		<tr>
        			<td>
        				<img src="images/tel_icon1.jpg" width="25px" alt="" border="0" />
        			</td>
        			<td width="1%" valign="top">:</td>
        			<td align="left">
	        			<div style="color:black; font-size: 9pt; 
			        		font-family: sans-serif; display: inline-block;">		        		
			        		<?php echo common_commonConst::MY_MOBILE; ?></div> 
			        	<div style="color:black; font-size: 9pt; 
			        		font-family: sans-serif; display: inline-block;">		        		
			        		<?php echo common_commonConst::MY_TEL; ?></div> 
        			</td>
        		</tr>
        		<tr>
        			<td>
        				<img src="images/mail_icon4.jpg" width="25px" alt="" border="0" />
        			</td>
        			<td width="1%" valign="top">:</td>
        			<td align="left">
	        			<div style="color:black; font-size: 9pt; 
			        		font-family: sans-serif; display: inline-block;">		        		
			        		<?php echo common_commonConst::MY_MAIL; ?></div>
        			</td>
        		</tr>
        	</table>     	   
        </div>
      </div>
      
      <div class="title_box">Tiện Ích</div>
      <div class="border_box" align="center" style="text-align: center;">
        <embed height="40" quality="high" src="http://www.clocklink.com/clocks/5005-green.swf?TimeZone=GMT0700&amp;" 
        	type="application/x-shockwave-flash" width="180" wmode="transparent"></embed>     
        <script type="text/javascript">
        	/*
			function viewSelectedMonth() {
				setOutputSize("small");
				var s = printSelectedMonth();
				document.open();
				document.writeln(s);
				document.close();
			}
			viewSelectedMonth();
			*/
		</script>
		
		<hr />
		<br />
		<iframe
			frameborder="0" marginwidth="0" marginheight="0"
			src="http://www.thienduongweb.com/tool/weather/?size=160&fsize=12&bg=images/bg.png&repeat=repeat-x&r=1&w=0&g=1&col=1&d=0"
			width="165" height="205" scrolling="no"></iframe>
		<br />
      </div>
      
      <div class="title_box">Quảng Cáo</div>
      <div class="border_box">
        <div class="banner_adds"> <a href="#">
        	<img src="images/wait_icon.gif" alt="" width="100px" border="0" />
        	<div class="product_title">Thiết Kế Web Chuyên Nghiệp</div></a> </div>
        <hr></hr>
        <div class="banner_adds"> <a href="#">
        	<img src="images/qc_maynuocnongpanasonic.jpg" width="180px" alt="" border="0" />
        	<div class="product_title">Máy nước nóng Panaonic</div></a> </div>
        <hr></hr>
      </div>
      
      <!-- 
      <div class="title_box">Manufacturers</div>
      <ul class="left_menu">
        <li class="odd"><a href="http://all-free-download.com/free-website-templates/">Sony</a></li>
        <li class="even"><a href="http://all-free-download.com/free-website-templates/">Samsung</a></li>
        <li class="odd"><a href="http://all-free-download.com/free-website-templates/">Daewoo</a></li>
        <li class="even"><a href="http://all-free-download.com/free-website-templates/">LG</a></li>
        <li class="odd"><a href="http://all-free-download.com/free-website-templates/">Fujitsu Siemens</a></li>
        <li class="even"><a href="http://all-free-download.com/free-website-templates/">Motorola</a></li>
        <li class="odd"><a href="http://all-free-download.com/free-website-templates/">Phillips</a></li>
        <li class="even"><a href="http://all-free-download.com/free-website-templates/">Beko</a></li>
      </ul>
      <div class="banner_adds"> <a href="#"><img src="images/bann1.jpg" alt="" border="0" /></a> </div>
       -->
      
    </div>
    <!-- end of right content -->
    
    
    
  <div class="footer">
    <div class="left_footer" style="width: 150px"> 
    	<img src="images/wine18.png" alt="" width="130" height="130"/> 
    	<img src="images/BannerText4.png" alt="" width="180" height="40"/>
    </div>
    <div class="center_footer" style="width: 500px"> 
      <!-- 
      Template name. All Rights Reserved 2008<br />
      <a href="http://csscreme.com"><img src="images/csscreme.jpg" alt="csscreme" border="0" /></a><br />
      <img src="images/payment.gif" alt="" /> 
      -->
    
    	<div style="color:black; font-size: 14pt; font-family: sans-serif; font-weight: bold; ">
			<?php echo common_commonConst::GREETING_FOOTER_1; ?>					
		</div>
		<div style="color:blue; font-size: 14pt; font-family: sans-serif; font-weight: bold; ">
			<a style="text-decoration: none;" 
			    href="<?php echo 'http://' . $myWeb = common_commonConst::GREETING_FOOTER_2; ?>">
				<?php echo $myWeb; ?>
			</a>					
		</div><br/>
		<div style="color:blue; font-size: 13pt; font-family: sans-serif; font-weight: bold; ">
			<?php echo common_commonConst::GREETING_FOOTER_3; ?>					
		</div>
		<div style="color:black; font-size: 11pt; font-family: sans-serif;">
			Địa chỉ:&nbsp;<?php echo common_commonConst::MY_ADDR; ?>					
		</div>
		<div style="color:black; font-size: 11pt; font-family: sans-serif;">
			ĐT:&nbsp;
			<div style="color:black; font-size: 11pt; font-family: sans-serif; font-weight:bold; display: inline-block;">
				<?php echo common_commonConst::MY_MOBILE . ' - ' . common_commonConst::MY_TEL; ?>		
			</div>			
		</div>
		<div style="color:black; font-size: 11pt; font-family: sans-serif;">
			Email:&nbsp;<?php echo common_commonConst::MY_MAIL; ?>	
		</div><br/><br/><br/><br/>
    
    
    
    <div style="position: fixed;top: 28%;left: 88%;z-index: 1000;">
    	<img src="images/Float_Contact_Board.png" 
    		 alt="" border="0" width="150px" height="200px"/>
    </div>
    
    </div>
    <div class="right_footer" style="width: 150px"> <a href="#">home</a> <a href="#">about</a> <a href="contact.php">contact us</a> </div>
  </div>
</div>
<!-- end of main_container -->
<div align="left" >Designed by  <a href='http://thietkewebsite.coo.me/'>thietkewebsite.coo.me</a></div></body> 
<!--    
  </div>
  <div class="footer">
    <div class="left_footer"> <img src="images/footer_logo.png" alt="" width="170" height="49"/> </div>
    <div class="center_footer"> Template name. All Rights Reserved 2008<br />
      <a href="http://csscreme.com"><img src="images/csscreme.jpg" alt="csscreme" border="0" /></a><br />
      <img src="images/payment.gif" alt="" /> </div>
    <div class="right_footer"> <a href="http://all-free-download.com/free-website-templates/">home</a> <a href="http://all-free-download.com/free-website-templates/">about</a> <a href="http://all-free-download.com/free-website-templates/">sitemap</a> <a href="http://all-free-download.com/free-website-templates/">rss</a> <a href="contact.html">contact us</a> </div>
  </div>
</div>
<div align=center>This template  downloaded form <a href='http://all-free-download.com/free-website-templates/'>free website templates</a></div></body>
--> 
</html>
